package com.example.cmtwo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@MapperScan("com.example.cmtwo.mapper")
@EnableTransactionManagement
@SpringBootApplication
//@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class CmtwoApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(CmtwoApplication.class, args);
        System.getProperty("user.dir");
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder applicationBuilder) {
        return applicationBuilder.sources(CmtwoApplication.class);
    }

}